﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models {

    public class SlotModule2x2 extends SlotModule {

        public function SlotModule2x2(_arg1:int){
            super(_arg1);
            m_maxNumberOfItems = 4;
        }
        public function hasTopActiveModule():Boolean{
            if (m_modules.length == (id + 1)){
                return (false);
            };
            var _local1:SlotModule2x2 = m_modules[(id + 2)];
            return (_local1.isActive);
        }
        public function isLeft():Boolean{
            return (((id % 2) == 0));
        }
        public function isRight():Boolean{
            return (!(((id % 2) == 0)));
        }
        public function getModuleFloor():int{
            return ((id / 2));
        }
        public function hasRightActiveModule():Boolean{
            return (((id % 2) == 0));
        }
        public function hasBottomActiveModule():Boolean{
            if ((((id == 0)) || ((id == 1)))){
                return (false);
            };
            var _local1:SlotModule2x2 = m_modules[(id - 2)];
            return (_local1.isActive);
        }
        public function hasLeftActiveModule():Boolean{
            return (!(((id % 2) == 0)));
        }
        public function getTopModule():SlotModule2x2{
            var _local1:SlotModule2x2 = m_modules[(id + 2)];
            return (_local1);
        }
        public function getRightModule():SlotModule2x2{
            var _local1:SlotModule2x2 = m_modules[(id + 1)];
            return (_local1);
        }
        public function getBottomModule():SlotModule2x2{
            var _local1:SlotModule2x2 = m_modules[(id - 2)];
            return (_local1);
        }
        public function getLeftModule():SlotModule2x2{
            var _local1:SlotModule2x2 = m_modules[(id - 1)];
            return (_local1);
        }

    }
}//package net.wooga.pets.models 
